package cn.xiaopengstack.domain.strategy.service.raffle;

import cn.xiaopengstack.domain.strategy.model.valobj.AwardStockQueueVO;
import cn.xiaopengstack.domain.strategy.model.valobj.UpdateAwardStockVO;

/**
 * @author jiangyangang
 * 奖品库存接口
 */
public interface IRaffleStock {

    /**
     * 获取库存更新队列
     * @return
     * @throws InterruptedException
     */
    AwardStockQueueVO takeStockQueueValue(AwardStockQueueVO awardStockQueueVO) throws InterruptedException;

    /**
     * 更新奖品库存，DB操作
     * @param updateStockVO
     */
    void updateStrategyAwardStock(UpdateAwardStockVO updateStockVO);
}
